<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>my-vue-cli</title>
    <style>
      html, body {
        width: 100%;
        height: 100%;
      }

      body {
        margin: 0;
      }
    </style>
  </head>
  <body>
    <div id="app"></div>
    <!-- built files will be auto injected -->
    <script>
      (function(doc,win){
        let docEle = doc.documentElement;
        let resizeEvent = 'orientationchange' in win ? 'orientationchange' : 'resize'
        let eventHandle = function(){
          var clientWidth = docEle.clientWidth
          if (!clientWidth) return
          if(clientWidth >= 1000){
            docEle.style.fontSize = 100 * (clientWidth / 1920) + 'px'
          }
        }
        if (!doc.addEventListener) return
        win.addEventListener(resizeEvent, eventHandle, false)
        doc.addEventListener('DOMContentLoaded', eventHandle, false)
      })(document,window)
    </script>
  </body>
</html>
